﻿<navigation:Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:Examples_ViewModels="clr-namespace:Examples.ViewModels"
                 xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
                 xmlns:OpenLightGroup_Common_Behaviors="clr-namespace:OpenLightGroup.Common.Interactivity;assembly=OpenLightGroup.Common.Interactivity"
                 xmlns:Examples_Controls="clr-namespace:Examples.Controls"
                 x:Class="Examples.Home"
                 mc:Ignorable="d"
                 d:DesignWidth="640"
                 d:DesignHeight="480"
                 Title="Home"
                 Style="{StaticResource PageStyle}">

    <Grid x:Name="LayoutRoot">
        <ScrollViewer x:Name="PageScrollViewer"
                      Style="{StaticResource PageScrollViewerStyle}">

            <StackPanel x:Name="ContentStackPanel">


                <CheckBox Content="Regular"
                          IsThreeState="False"
                          IsChecked="{Binding IsTheBest, Mode=TwoWay}">
                    <CheckBox.DataContext>
                        <Examples_ViewModels:Item />
                    </CheckBox.DataContext>
                    <i:Interaction.Behaviors>
                        <OpenLightGroup_Common_Behaviors:IsCheckedCycleCheckBoxBehavior />
                    </i:Interaction.Behaviors>
                </CheckBox>

                <CheckBox Content="Regular 2"
                          IsThreeState="False"
                          IsChecked="{Binding IsTheBest, Mode=TwoWay}">
                    <CheckBox.DataContext>
                        <Examples_ViewModels:Item IsTheBest="False" />
                    </CheckBox.DataContext>
                    <i:Interaction.Behaviors>
                        <OpenLightGroup_Common_Behaviors:IsCheckedCycleCheckBoxBehavior />
                    </i:Interaction.Behaviors>
                </CheckBox>


                <CheckBox Content="Tri State"
                          IsThreeState="True"
                          IsChecked="{Binding IsTheBest, Mode=TwoWay}">
                    <CheckBox.DataContext>
                        <Examples_ViewModels:Item />
                    </CheckBox.DataContext>
                    <i:Interaction.Behaviors>
                        <OpenLightGroup_Common_Behaviors:IsCheckedCycleCheckBoxBehavior />
                    </i:Interaction.Behaviors>
                </CheckBox>


                <CheckBox Content="Tri State 2"
                          IsThreeState="True"
                          IsChecked="{Binding IsTheBest, Mode=TwoWay}">
                    <CheckBox.DataContext>
                        <Examples_ViewModels:Item IsTheBest="False" />
                    </CheckBox.DataContext>
                    <i:Interaction.Behaviors>
                        <OpenLightGroup_Common_Behaviors:IsCheckedCycleCheckBoxBehavior />
                    </i:Interaction.Behaviors>
                </CheckBox>

                <TextBlock x:Name="HeaderText"
                           Style="{StaticResource HeaderTextStyle}"
                           Text="Home" />
                <TextBlock x:Name="ContentText"
                           Style="{StaticResource ContentTextStyle}"
                           Text="Home page content" />

            	<Examples_Controls:ErrorNotificationControl HorizontalAlignment="Right" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" Height="75" Width="75">
            		<Examples_Controls:ErrorNotificationControl.RenderTransform>
            			<CompositeTransform TranslateX="75"/>
            		</Examples_Controls:ErrorNotificationControl.RenderTransform>
            	</Examples_Controls:ErrorNotificationControl>
                <ListBox x:Name="EventsListBox" ItemsSource="{Binding LatestEvents}" />

            </StackPanel>

        </ScrollViewer>
    </Grid>

</navigation:Page>